Dalvik Virtual Machine | DVM

Course- Android >

As we know modern JVM is high performance and provides excellent memory management but it should be optimized for low-powered handheld devices

The Dalvik Virtual Machine (DVM) is an android virtual machine optimized for mobile devices. It optimizes the virtual machine for memory, battery life and performance.

The deck compiler class converts the file into .dex file which runs on the DualVi VM. Multiple class files are converted into a dex file.

Let's look at the compilation and packaging process from the source file:

Dalvik Virtual Machine Flow

The javac tool compiles the java source file into the class file.

The dx tool takes all the class files of your application and generates a single .dex file. It is a platform-specific tool.

The Android Assets Packaging Tool (aapt) handles the packaging process.